<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			let cartGoods = [{
					goodsname: '小米10',
					price: 5000,
					isChecked: true, //代表是否选中了
				},
				{
					goodsname: '苹果10',
					price: 3000,
					isChecked: true, //代表是否选中了
				}
			];
			
			var a = cartGoods.every(function(item){
				return item.isChecked;
			})
			console.log(a)
		</script>
	</body>
</html>
